package com.weibo.util;

import android.util.Log;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;

public class GetAnim {
	public static Animation getBottomMenuAnim(String mode) {

		Animation anim;
		if (mode == "up") {
			anim = new TranslateAnimation(0, 0, 0, -74);
		} else if (mode == "down") {
			anim = new TranslateAnimation(0, 0, -74, 0);
			Log.v("weibo", "" + mode);
		} else {
			anim = null;
		}

		anim.setFillAfter(true);
		anim.setDuration(500);
		anim.setInterpolator(new AccelerateInterpolator());
		return anim;
	}
}
